<?

print_r($data->WIDGET);

?>

<div id="content" class="home">
    <h1><?=$data->TITLE?></h1>
    <h3><?=$data->DESCRIPTION?></h3>
    <form id="form" method="post" action="/json<?=PREFIX.'/'.APP.'/'.CMD?>">
        <h2><span><?=_('Home Page')?></span></h2>
    <div class="preDeck">
        <div class="preBelly">
            <?foreach($data->home->layout->content as $app=>$i):?>
            <div class="app">
                <label class="appLabel"><?=$app?></label>
                <span class="checkbox">
                    <a class="checkboxItem" title="layout-content-<?=$app?>">
                    <span class="check"><span>&nbsp;</span></span><?=_('show')?></a>
                    <input id="layout-content-<?=$app?>" name="layout[content][<?=$app?>]" type="hidden" value="<?=$i?>" />
                </span>
            <div class="clear"></div>
            </div>
            <?endforeach;?>
        </div>
        <div class="preFlank">
            <?foreach($data->home->layout->aside as $app=>$i):?>
            <div class="app">
                <label class="appLabel"><?=$app?></label>
                <span class="checkbox">
                    <a class="checkboxItem" title="layout-aside-<?=$app?>">
                    <span class="check"><span>&nbsp;</span></span><?=_('show')?></a>
                    <input id="layout-aside-<?=$app?>" name="layout[aside][<?=$app?>]" type="hidden" value="<?=$i?>" />
                </span>
            <div class="clear"></div>
            </div>
            <?endforeach;?>
        </div>
        <div class="clear"></div>
    </div>
    <div class="formLineLight">
        <span class="submit">
        <span id="loader" class="loader"><img src="/themes/<?=THEME?>/images/loader.gif" alt="loader" /></span>
        <input id="submit" class="submit" type="submit" value="<?=_('Save Design')?>" />
        </span>
    <span class="clear"></span>
    </div>
    </form>
    <div class="clear"></div>
</div>
<div id="aside">
    <?include 'apps/common/template/_home_aside.html';?>
</div>
<script type="text/javascript">tool.form(1);</script>